package online.foxnull2.foxmall.product.feign;

import online.foxnull2.foxmall.product.feign.fallback.SeckillFeignServiceFallback;
import online.foxnull2.foxmall.product.vo.SeckillSkuRedisVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "foxmall-seckill", fallback = SeckillFeignServiceFallback.class)
public interface SeckillFeignService {

    @GetMapping("/{skuId}/seckillInfo")
    SeckillSkuRedisVo getSeckillInfoBySkuId(@PathVariable("skuId") Long skuId);
}
